package com.aiyo.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * <p>
 * 字典表
 * </p>
 *
 * @author ylc
 * @since 2020-04-13
 */
@Data
@Table(name = "dic_base_dictionary")
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class BaseDictionary {

	@Id
	@ApiModelProperty(value = "id")
	private Long id;

	@Column(name = "dic_name")
	@ApiModelProperty(value = "字典名称")
	private String dicName;

	@Column(name = "parent_id")
	@ApiModelProperty(value = "父级字典id")
	private Long parentId;

	@Column(name = "dic_num")
	@ApiModelProperty(value = "字典编号")
	private String dicNum;

	@ApiModelProperty(value = "排序")
	private Integer order;

	@ApiModelProperty(value = "数值")
	private String value;

	@ApiModelProperty(value = "层级")
	private String level;

	@ApiModelProperty(value = "操作人")
	private String operation;

	@Column(name = "operation_time")
	@ApiModelProperty(value = "操作时间")
	private Date operationTime;

	@Column(name = "logical_state")
	@ApiModelProperty(value = "逻辑状态 1未删除  2已删除")
	private Long logicalState;


}
